package org.nanhill.xmlro;

/**
 * Serializer Factory .
 * 
 * @author alin
 * 
 */
public interface SerializerFactory {

	/**
	 * Returns the serializer for a class.
	 * 
	 * @param clz
	 *            the class of the object that needs to be serialized.
	 * 
	 * @return a serializer object which is do the serialization.
	 */
	public Serializer getSerializer(Class clz);

	/**
	 * Add specified serializer.
	 * 
	 * @param clz
	 * @param serializer
	 */
	public void addSerializer(Class clz, Serializer serializer);

}
